<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:replace="dashboard/header :: header"></head>
<body>

<!--
@desc  添加
@author WeiXiaoJin
@since 2020-01-20 12:02:03
-->
	<div layout:fragment="content">
		<div class="container-fluid content-main">
			<div class="animated fadeIn">
				<div class="row">
					<!-- /.col-->
					<div class="col-sm-12">
						<div class="card">
							<div class="card-body">
								<form class="form-horizontal" id="addForm">
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">短信内容</label>
	<div class="col-md-9">
				<input class="form-control" id="content" type="text" name="content" placeholder="">
			</div>
</div>
						
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">手机号</label>
	<div class="col-md-9">
				<input class="form-control" id="phone" type="text" name="phone" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">签名</label>
	<div class="col-md-9">
				<input class="form-control" id="signName" type="text" name="signName" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">模板</label>
	<div class="col-md-9">
				<input class="form-control" id="template" type="text" name="template" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">模板代码</label>
	<div class="col-md-9">
				<input class="form-control" id="templateCode" type="text" name="templateCode" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">验证码</label>
	<div class="col-md-9">
				<input class="form-control" id="validateCode" type="text" name="validateCode" placeholder="">
			</div>
</div>
																									</form>
							</div>
						</div>
					</div>
					<!-- /.col-->
				</div>
			</div>
		</div>

	</div>

	<footer th:replace="dashboard/footer :: footer"></footer>

	<script type="text/javascript">
		var addForm = $("#addForm") ; 
		$(function(){
			addForm.validate({
				ignore: [],  
				rules: {
content: {required:true}
,outId: {required:true}
,phone: {required:true}
,signName: {required:true}
,template: {required:true}
,templateCode: {required:true}
,validateCode: {required:true}
				}
			});
		}) ;

		function submitHandler() {
			var result = $.validate.form("addForm");
			if(result){	
				var saveUrl = ctx+"base/notice/smsFail/save" ;
				$.operate.save(saveUrl , addForm.serialize());
			}
	    }
	</script>

</body>
</html>


